package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.LessonAttachment;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * 课程信息与附件关联表(LessonAttachment)表数据库访问层
 *
 * @author makejava
 * @since 2024-05-25 16:49:05
 */
public interface LessonAttachmentMapper {


    /**
     * 批量新增数据（MyBatis原生foreach方法）
     *
     * @param list List<LessonAttachment> 实例对象列表
     * @return 影响行数
     */
    int insertBatch(@Param("list") List<LessonAttachment> list);


    int deleteLessonAttachmentByLessonId(Long lessonId);

    Long[] selectAttachmentIdByLesson(Long lessonId);

}

